from django.urls import path,include,re_path
from .views import *
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
# router.register("morelist",MorelistView,basename="")

urlpatterns = [
    path('index/', index),
    path('',include(router.urls)),
    path('list/',list),
    path('base/', base),
    path('bootstrap_cart/', bootstrap_cart),
    path('bootstrap_login/', bootstrap_login),
    path('bootstrap_register/', bootstrap_register),
    re_path('detail/(\d+)/', detail),
    path('edit_address/', edit_address),
    path('edit_user/', edit_user),
    path('myorders/', myorders),
    path('place_order/', place_order),
    # path('morelistview/', MorelistView.as_view()),
    path('logout/', logout),
    path('user_center_info/', user_center_info),
    path('redata/', redata),
    path('payresult/', payresult),
    path('zfbpay/', zfbpay),
    path('addcarts/', addcarts),
    path('updatecart/', updatecart),
    path('cartpayorder/', cartpayorder),
]